package top.zsyle.pet.dto;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
public class SearchMsgPublishDto {


    @NotBlank(message = "寻主消息宠物名称不能为空！")
    private String name;
    private Double price;
    private Integer age;
    @NotNull(message = "宠物性别不能为空！")
    private Integer gender;
    private String coatColor;
    private String resources;
    @NotNull(message = "宠物种类不能为空！")
    private Long petType;
    @NotBlank(message = "发布寻主信息的源地址不能为空！")
    private String address;
    @NotBlank(message = "寻主消息标题不能为空！")
    private String title;

}
